package com.lovo.model.DOS;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lovo.myutil.Table;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Description:
 *
 * @author LiuChengQi
 * @date Created on 2020/11/25
 */
@Data
@NoArgsConstructor
@TableName("student_1117")
public class StudentDO implements Serializable {
    @TableId("s_id")
    private Long stuID;
    @TableField("s_name")
    private String stuName;
    @TableField("s_age")
    private Integer stuAge;

    public StudentDO(String stuName, Integer stuAge) {
        this.stuName = stuName;
        this.stuAge = stuAge;
}

    public StudentDO(Long stuID) {
        this.stuID = stuID;
    }
}
